extends mixins/_layout

block content
  body
    #wrapper
      //- 顶部导航
      include mixins/_header
      +header(navigator, 'index')
      
      #desk
        if articles.availble>0
          ul#articleList
            each item in articles
              if item.availble
                li.font-26
                  h2.title.font-30
                    span.number
                    a.link(href="/article/" + item.articleid) #{item.title}
                  small.about.font-26 In <em class='cates'>#{item.cates}</em> on <em class='date'>#{item.date}</em> by #{item.author}
                  if item.imgid
                    .summary
                      .summaryTxt !{item.summary}
                      .img
                        img(src="/images/" +item.imgid)
                  else
                    .summary !{item.summary}
                  a.read.common_green(href="/article/" + item.articleid) 阅读全文
      
        else
          p.empty <img src='/images/nothing.svg'><br>Nothing?! 先去<a href='/post'>发表文章</a>吧

      include mixins/_footer
      +footer

    include mixins/_footer_js
    +footerjs(config)
    script.
      window.addEventListener('DOMContentLoaded', function(){
        kblog.toggleMenu();
      });
    